package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Setter@Getter
@Document("strategy_comment")
public class StrategyComment implements Serializable {
    @Id
    private String id; //评论id

    private Long detailId; //文章id

    private String detailTitle; //文章标题

    private Long userId; //用户id

    private String username; //用户昵称

    private Integer level; //用户等级

    private String headUrl; //用户头像

    private Date createTime; //评论时间

    private String content; //评论内容

    private Integer thumbupnum = 0; //点赞数量

    private List<Long> thumbuplist = new ArrayList<>(); //点赞集合ids
}
